package com.sl.plugin.step.switchcase;

import com.sl.core.engine.check.ProcessCompCheckParam;
import com.sl.core.engine.check.ProcessCompCheckResult;
import com.sl.core.engine.meta.ProcessCompDescriptorService;
import com.sl.core.engine.meta.impl.AbstractProcessCompDescriptor;
import com.sl.core.engine.meta.row.ProcessRowDescriptor;
import lombok.Getter;

import java.util.List;
import java.util.Map;

//@Comp(id = "ManyToOne", name = "多行转一行", desc = "多行转一行", groupName = "转换")
@Getter
public class SwitchCaseCompDescriptor extends AbstractProcessCompDescriptor<
        SwitchCaseComp, SwitchCaseCompContext> implements ProcessCompDescriptorService {


    @Override
    public void loadDescriptor(Map<String, Object> map) {




    }

    @Override
    public List<ProcessCompCheckResult> check(ProcessCompCheckParam processCompCheckParam) {
        return checkWrapper(checkOnlyOneInput(processCompCheckParam));
    }


    @Override
    public ProcessRowDescriptor getResultDescriptor(ProcessRowDescriptor rowDescriptor) {
        return new ProcessRowDescriptor(rowDescriptor);
    }

}
